import Layout from '@/layout'
const views = [
  {
    path: '/index',
    name: 'index',
    hidden: false,
    component: (resolve) => require(['@/views/Index'], resolve),
    meta: {
      title: '首页',
      noNeedLogin: true,
      icon: ''
    }
  },
  {
    path: '/user',
    name: 'user',
    hidden: false,
    component: (resolve) => require(['@/views/User'], resolve),
    meta: {
      title: '人员',
      noNeedLogin: false,
      icon: ''
    }
  },
  {
    path: '/category',
    name: 'category',
    hidden: false,
    component: (resolve) => require(['@/views/Category'], resolve),
    meta: {
      title: '分类',
      noNeedLogin: false,
      icon: ''
    }
  },
  {
    path: '/article',
    name: 'article',
    hidden: true,
    component: (resolve) => require(['@/views/Article'], resolve),
    meta: {
      title: '文章详情',
      noNeedLogin: true,
      icon: ''
    }
  },
  {
    path: '/artManager',
    name: 'artManager',
    hidden: false,
    component: (resolve) => require(['@/views/ArtManager'], resolve),
    meta: {
      title: '文章管理',
      noNeedLogin: false,
      icon: ''
    }
  },
  {
    path: '/system',
    name: 'system',
    // component: (resolve) => require(['@/layout'], resolve),
    component: { render: (e) => e('router-view') },
    children: [{
      path: 'router',
      name: 'router',
      component: (resolve) => require(['@/views/System/Router'], resolve),
      meta: {
        title: '路由管理'
      }
    }],
    meta: {
      title: '系统设置'
    }
  },
  {
    path: '/pageTemplate',
    name: 'pageTemplate',
    hidden: true,
    component: (resolve) => require(['@/views/PageTemplate'], resolve),
    meta: {
      title: 'temp',
      noNeedLogin: false,
      icon: ''
    }
  }

]

export default views